﻿using FreeDream.IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FreeDream.Service
{
    public class AService : IAService, IDependency
    {
        public int Add()
        {
            Console.WriteLine($"添加成功,{DateTime.Now}");
            return 2;
        }

        public bool Delete()
        {
            Console.WriteLine($"删除成功,{DateTime.Now}");
            return true;
        }

        public string GetA()
        {
            Console.WriteLine($"查询数据成功");
            return $"查询数据：{DateTime.Now}";
        }

        public bool Update()
        {
            Console.WriteLine($"修改成功,{DateTime.Now}");
            return true;
        }
    }
}
